﻿using System;
using Fuse8.DomainFramework.Domain;
using Fuse8.GlobalizationFramework.Infrastructure;

namespace Fuse8.GlobalizationFramework.Domain
{
    /// <summary>
    /// Resource entity
    /// </summary>
    [Serializable]
    public class Resource : Int32EntityObject, IGlobalizableEntity
    {
        /// <summary>
        /// Resource key
        /// </summary>
        public string Key { get; set; }
        
        /// <summary>
        /// Resource locale
        /// </summary>
        public string Locale { get; set; }

        /// <summary>
        /// Resource value
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// Common Id
        /// </summary>
        public int PublicGroupId { get; set; }

        /// <summary>
        /// Indicates that entity is translated
        /// </summary>
        public bool Translated { get; set; }
    }
}